package com.xzq.bugstack;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * @Author xzq
 * @Description //TODO
 * @Date 2021/11/19 13:48
 * @Version 1.0.0
 **/
public class MyChannelIntializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel socketChannel) throws Exception {
        System.out.println("连接建立....");
        System.out.println("本机成功连接服务端.. channelId: "+socketChannel.id());
    }
}
